package com.huanwei.mylab.adapter;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.huanwei.cc.base.Base_Z_Adapter;
import com.huanwei.cc.base.MyApplication;
import com.huanwei.cc.R;
import com.huanwei.cc.bean.TypeBean;

/**
 * Created by ADM on 2017/12/4.
 */

public class YYZL_Adapter extends Base_Z_Adapter {
    String zt;

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        Holder holder = null;
        // 查找控件
        if (null == convertView) {
            convertView = LayoutInflater.from(MyApplication.getInstance())
                    .inflate(R.layout.yyzl_item, null);
            holder = new Holder();

            holder.tv1 = (TextView) convertView
                    .findViewById(R.id.tv1);

            // 缓存Holder
            convertView.setTag(holder);
        } else {
            holder = (Holder) convertView.getTag();
        }


        TypeBean.ResultdataBean nrowDataeme = (TypeBean.ResultdataBean) getItem(position);
        holder.tv1.setText(nrowDataeme.getFishCategory_Name());


        return convertView;
    }


    public class Holder {


        TextView tv1;


    }


}
